// global.less

[data-theme="dark"] {
  --bg-color: rgba(0, 0, 0, .7);
  --bg-level2-color: #111a2c;
  --bg-level3-color: #202641;
  --color-border: #182536;
  --bg-space-color: #1a1f35;
  --bg-active-color: #50555B;
  --bg-show-color: rgba(168, 169, 182, 0.09);
  --bg-start-menu-item-color: rgb(49, 57, 75);
  --bg-list-item-active-color: rgb(21, 33, 56);
  --explanatory-color: #c4c4c4;
  --bg-input-color: rgb(65, 71, 93);
  --editor-code-bg-color: rgba(#ffffff, 0.25);
  --bg-toc-color: rgb(82, 80, 105);
  --bg-toc-text-color: #e4e4e4;
  --text-color: #fdfdfd;
  --text-active-color: #fff;
}

[data-theme="light"] {
  --bg-color: #d6d6d6;
  --bg-level2-color: #fafafa;
  --bg-level3-color: #f9f9f9;
  --color-border: #aeaeae;
  --bg-space-color: #fff;
  --bg-active-color: #ececec;
  --bg-show-color: rgba(0, 0, 0, .09);
  --bg-start-menu-item-color: #fbfbfb;
  --bg-list-item-active-color: #f4f4f4;
  --explanatory-color: #8a8f8d;
  --editor-code-bg-color: rgba(#adadad, 0.25);
  --bg-toc-color: #fcfcfc;
  --bg-toc-text-color: #4b4b4b;
  --text-color: #585a5a;
  --text-active-color: #000;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  // .ant-btn-primary {
  //     background: #f5f5f5 ;
  //     border-color: #eaeaea;
  //   }

  background-color: var(--bg-color);
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
    background-color: var(--editor-code-bg-color);
    padding: 3px;
    margin: 0px 4px;
    border-radius: 4px;
    font-weight: 500;
    color: #f18f51;
}

pre {
  background: rgb(64, 64, 64);
  color: #FFF;
  font-family: 'JetBrainsMono', monospace;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;

  code {
    color: inherit;
    padding: 0;
    background: none;
    font-size: 0.8rem;
    white-space: pre-wrap;
  }

  .hljs-comment,
  .hljs-quote {
    color: #616161;
  }

  .hljs-variable,
  .hljs-template-variable,
  .hljs-attribute,
  .hljs-tag,
  .hljs-name,
  .hljs-regexp,
  .hljs-link,
  .hljs-name,
  .hljs-selector-id,
  .hljs-selector-class {
    color: #f98181;
  }

  .hljs-number,
  .hljs-meta,
  .hljs-built_in,
  .hljs-builtin-name,
  .hljs-literal,
  .hljs-type,
  .hljs-params {
    color: #fbbc88;
  }

  .hljs-string,
  .hljs-symbol,
  .hljs-bullet {
    color: #b9f18d;
  }

  .hljs-title,
  .hljs-section {
    color: #faf594;
  }

  .hljs-keyword,
  .hljs-selector-tag {
    color: #70cff8;
  }

  .hljs-emphasis {
    font-style: italic;
  }

  .hljs-strong {
    font-weight: 700;
  }
}

ul[data-type="taskList"] {
  list-style: none;
  padding: 0;

  p {
    margin: 0;
  }

  li {
    display: flex;

    >label {
      flex: 0 0 auto;
      margin-right: 0.5rem;
      user-select: none;
    }

    >div {
      flex: 1 1 auto;
    }

    ul li,
    ol li {
      display: list-item;
    }

    ul[data-type="taskList"]>li {
      display: flex;
    }
  }
}

::view-transition-new,
::view-transition-old {
  animation: none;
  mix-blend-mode: normal;
}

.layer-ui__wrapper__footer-right{
  display: none !important;
}